package com.javaobj.auth.config;

import org.springframework.boot.context.properties.ConfigurationProperties;

@ConfigurationProperties(prefix = "com.javaobj.auth")
public class AuthConfigurationProperties {


    /**
     * JWT Token 配置
     */
    private  Jwt jwt = new Jwt();

    public Jwt getJwt() {
        return jwt;
    }

    public void setJwt(Jwt jwt) {
        this.jwt = jwt;
    }

    public static class Jwt {

        /**
         * JWT 的key
         */
        private String keyValue;

        private String algorithm = "HS256";



        public String getKeyValue() {
            return keyValue;
        }

        public String getAlgorithm() {
            return algorithm;
        }

        public void setAlgorithm(String algorithm) {
            this.algorithm = algorithm;
        }

        public void setKeyValue(String keyValue) {
            this.keyValue = keyValue;
        }



    }
}
